Check String is Palindrome or not in JavaScript